using System;
using System.Xml;
using System.Collections.Generic;

namespace Thinxoft.HttpLib
{
	/// <summary>
	/// Summary description for XspDirective.
	/// </summary>
	public class XspDirectives : MarshalByRefObject
	{
		XmlNode directives;
		public XspDirectives(XmlNode directives)
		{
			this.directives = directives;
		}

		public List<string>  Namespaces{
			get{
				if(directives["namespaces"] != null){
                    return new List<string>(directives["namespaces"].Attributes["list"].Value.Split(",".ToCharArray()));
                }else
					return null;
			}
		}

        public List<string> Assemblies
        {
            get{
				if(directives["assemblies"] != null)
                    return new List<string>(directives["assemblies"].Attributes["list"].Value.Split(",".ToCharArray()));
                else
					return null;
			}
		}
	}
}
